The World Happiness Index measures happiness based on respondent’s ratings of their own lives. The report offers a way to measure people’s quality of life and the effectiveness of the governments beyond gross domestic product and other economic indicators. By focusing on national well being, a country can take a more wholistic approach to improving their populace’s lives. The United Nations conducts the survey based on a ladder system by asking respondents to rate the best possible life at 10 and the worst possible life being a 0. Respondents from 155 countries are then asked to rate their own current lives on that 0 to 10 scale.
source("scripts/summary_info.R")
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
dataset <- read.csv(
file = "data/world-happiness/2017.csv",
stringsAsFactors = FALSE)
summary_list <- get_summary_info(dataset)
The World Happiness Index surveyed 155 countries. The happiest country in the world in 2017 was Norway with a score of 7.5370002. The unhappiest country in the world was Central African Republic with a score of 2.6930001
source("scripts/happy_analysis.R")
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout